﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Ocelot.Admin.Api.Core
{
    /// <summary>
    /// 用户表
    ///</summary>
    [SugarTable("UserAccount")]
    public class UserAccount
    {
        /// <summary>
        /// 主键Id 
        ///</summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public long ID { get; set; }

        /// <summary>
        /// 账户
        ///</summary>
        [SugarColumn(ColumnName = "Account")]
        public string Account { get; set; }

        /// <summary>
        /// 密码
        ///</summary>
        [SugarColumn(ColumnName = "Password")]
        public string Password { get; set; }

        /// <summary>
        /// OpenId
        /// </summary>
        [SugarColumn(ColumnName = "OpenId")]
        public string OpenId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }

        /// <summary>
        /// 是否启动
        /// </summary>
        [SugarColumn(ColumnName = "Enabled")]
        public bool Enabled { get; set; }
    }
}
